import { PipeTransform,Pipe } from '@angular/core';

@Pipe(
    { name: 'cssValue' }
)
export class ElCSSValuePipe implements PipeTransform {
    transform(value:any) {
        if (typeof value === 'number')
            return value + "px";
        if (Number.isNaN(+value))
            return String(value);
        return value + "px";
    }
}